//
//  AskHandle.h
//  QAServiceAsk
//
//  Created by captain on 15/11/18.
//  Copyright © 2015年 李诚. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

//提问类型
typedef NS_ENUM(NSInteger, AskType) {
    AskTypeNormal,              //一般客服
    AskTypeProfessional         //专业问题
};

//打开方式present Or push
typedef NS_ENUM(NSInteger, ActionSegue) {
    ActionSeguePresent,
    ActionSeguePush
};


@interface AskHandle : NSObject

#pragma mark - 单例
+ (AskHandle *)sharedInstance;

+ (void)freeInstance;


#pragma mark - Property
//打开方式，default is ActionSeguePresent
@property (nonatomic, assign) ActionSegue   actionSegue;
//提问类型 default is AskTypeNormal
@property (nonatomic, assign) AskType       askType;
//是否打开log  default is NO
@property (nonatomic, assign) BOOL          openLog;


#pragma mark - Required
//设置appKey和Secret
- (void)setAppKey:(NSString *)appKey appSecret:(NSString *)appSecret;
//设置用户id
- (void)setUserId:(NSString *)userId;
//打开界面
- (void)openAskViewControllerFromVC:(UIViewController *)vc;

@end
